#ifndef Z_WALL
#define Z_WALL

#include "stdafx.h"
class wall{
public:
    inline wall();
    inline void setposation(int x1,int y1,int x2,int y2);
    inline void getposation(int &x1,int &y1,int &x2,int &y2) const;
    inline void Draw(CDC* pDC);
private:
    int X1,X2,Y2,Y1;
    CPen m_wall;
};

wall::wall(){
    
}

void wall::setposation(int x1, int y1, int x2, int y2) {
    X1=x1;
    X2=x2;
    Y1=y1;
    Y2=y2;
}

void wall::getposation(int &x1,int &y1,int &x2,int &y2) const{
    x1=X1;
    x2=X2;
    y1=Y1;
    y2=Y2;
}

void wall::Draw(CDC *pDC){
    m_wall.CreatePen(0,7,RGB(106,82,47));
    
    pDC->SelectObject(&m_wall);
    pDC->SetViewportOrg(0,0);
    pDC->MoveTo(X1,Y1);
    pDC->LineTo(X2,Y2);
}

#endif


